package com.csglxt.domain;

import java.util.HashSet;
import java.util.Set;

/**
 * 
 * @ClassName: Supplier
 * @Description: 供应商实体类
 * @author Delver_Si
 * @date 2015-5-28 下午10:38:44
 * 
 */
@SuppressWarnings("serial")
public class Supplier implements java.io.Serializable {

    // Fields

    private String id;
    private String name;
    private String address;
    private String phoneNumber;

    private Set<Order> orders = new HashSet<Order>();

    // Constructors

    /** default constructor */
    public Supplier() {
    }

    public Set<Order> getOrders() {
        return orders;
    }

    public void setOrders(Set<Order> orders) {
        this.orders = orders;
    }

    public Supplier(String id) {
        super();
        this.id = id;
    }

    /** full constructor */
    public Supplier(String name, String address, String phoneNumber) {
        this.name = name;
        this.address = address;
        this.phoneNumber = phoneNumber;

    }

    // Property accessors

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return this.address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhoneNumber() {
        return this.phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

}